-
-
Notifications
You must be signed in to change notification settings - Fork 227
feat(indexes): Support for index column operator class #964
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
feat(indexes): Support for index column operator class #964
Conversation
|
Can you take care of the CI errors? Seem trivial |
| pub(crate) name: DynIden, | ||
| pub(crate) prefix: Option<u32>, | ||
| pub(crate) order: Option<IndexOrder>, | ||
| pub(crate) operator_class: Option<DynIden>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is only supported by PostgreSQL. Please put it behind the feature gate.
| } | ||
|
|
||
| if let Some(operator_class) = col.operator_class() { | ||
| write!(sql, " {}", operator_class).unwrap(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use write_str instead of the write! macro, format_args has a performance cost.
|
|
||
| sql.write_str(")").unwrap(); | ||
| }); | ||
| write!(sql, ")").unwrap(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also here.
| } | ||
|
|
||
| #[test] | ||
| fn create_7() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are now two create_7. Please fix them.
New Features
Postgres only.